package bid.yanhj.springboot.config;

import org.springframework.stereotype.Component;

/**
 * 书属性
 * @author yanhaijiang
 * @Validated 校验.
 *
 */
@Component
public class BookComponent {
	/**
	 * 书名.
	 */
	private String name;
	/**
	 * 作者.
	 */
    private String writer;

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getWriter() {
		return writer;
	}
	public void setWriter(String writer) {
		this.writer = writer;
	}
}
